/* 我的页面整体样式 */
.my-page {
  min-height: 100vh;
  background-color: #f8f9fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* 头部区域样式 */
.header-section {
  position: relative;
  height: 240px;
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  border-radius: 0 0 25px 25px;
  overflow: hidden;
  width: 100%;
}

.header-background::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.header-background::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.header-content {
  position: relative;
  z-index: 1;
  padding: 15px 20px 20px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-top: 10px;
}

.back-button {
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.notification-bell {
  color: white;
  font-size: 20px;
  cursor: pointer;
  width: 25px;
}

.user-profile {
  display: flex;
  align-items: center;
  flex: 1;
}

.user-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.avatar-placeholder {
  font-size: 35px;
  text-align: center;
}

.user-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-name {
  color: white;
  font-size: 20px;
  font-weight: 600;
}

.sign-in-button {
  width: 60px;
  margin-right: 10px;
}

.sign-in-button:hover {
  transform: translateY(-1px);
}

/* 我的问诊卡片样式 */
.consultation-card {
  background: white;
  margin: -15px 15px 15px 15px;
  border-radius: 20px 20px 15px 15px;
  padding: 25px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  max-width: calc(100vw - 30px);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.consultation-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.consultation-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f5f5f5;
}

.consultation-item:last-child {
  border-bottom: none;
}

.consultation-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.consultation-icon.current {
  background: linear-gradient(135deg, #FF6B35, #F7931E);
}

.consultation-icon.history {
  background: linear-gradient(135deg, #00CED1, #20B2AA);
}

.icon-placeholder {
  font-size: 24px;
  text-align: center;
}

.consultation-text {
  flex: 1;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.consultation-arrow {
  color: #999;
  font-size: 18px;
  font-weight: bold;
  width: 20px;
}

/* 功能图标网格样式 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 10px 15px 20px 15px;
  max-width: 100%;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.icon-emoji {
  font-size: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.feature-label {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  line-height: 1.2;
}

/* 底部版权样式 */
.footer {
  text-align: center;
  padding: 25px 20px;
  margin-bottom: 30px;
}

.copyright {
  color: #aaa;
  font-size: 12px;
  font-weight: 400;
}

/* 防止晃动的基础样式 */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .features-grid {
    gap: 15px;
    padding: 0 15px 20px 15px;
  }

  .feature-item {
    padding: 15px 8px;
  }

  .feature-icon {
    width: 45px;
    height: 45px;
  }

  .icon-emoji {
    font-size: 20px;
  }

  .feature-label {
    font-size: 12px;
  }
}